package com.es.gateway.sdk.app.livingdetect;

import com.es.gateway.sdk.app.efaceid.GetCertificateResponse;
import com.es.gateway.sdk.util.GsonUtil;
import lombok.Data;
@Data
public class LivingdetectResponse {
    /**
     * 错误码
     */
    private String code;
    /**
     * 结果描述
     */
    private String msg;
    /**
     * TOKEN
     */
    private String token;

    public String toJsonStr(){return GsonUtil.getAllJson().toJson(this);}

    public static LivingdetectResponse fromJsonStr(String JsonStr) {
        return GsonUtil.getAllJson().fromJson(JsonStr, LivingdetectResponse.class);
    }
}
